<template>
	<tn-landscape :show="show" :closeBtn="false" :mask="true" :maskCloseable="false">
		<tn-loading :show="true" :size="70" :color="appConfig.ui.themeColorDark"></tn-loading>
		<view class="tn-margin-top">
			<text class="loading-text">正在处理中...</text>
		</view>
	</tn-landscape>
</template>

<script>
	import page_mixin from '@/mixins/page_mixin.js'
	import * as api from '@/api/api.js';
	import * as PatientApi from '@/api/hospital/patient.js';
	import dayjs from "@/plugin/dayjs/dayjs.min.js";
	import {
		mapGetters
	} from "vuex";
	const app = getApp();
	export default {
		name: 'dawn-loading',
		computed: mapGetters(['appConfig']),
		props: {
			// 距离底部的距离
			bottom: {
				type: [Number, String],
				default: 300
			},
			// 距离右边的距离
			right: {
				type: [Number, String],
				default: 30
			},
			zIndex: {
				type: [Number, String],
				default: 3000
			},
			// 提示信息
			msg: {
				type: String,
				default: ''
			},
			// 病人档案信息
			icon: {
				type: String,
				default: ''
			},
			show: {
				type: Boolean,
				default: false
			},
		},
		data() {
			return {
				
			}
		},
		mounted() {

		},
		methods: {
			chooseClick() {
				this.show = true;
			},
			chooseItem(item) {
				console.log("this.search:" + this.search)
				this.patient = item;
				app.globalData.patient = item;
				this.show = false;
				console.log("this.search:" + this.search)
				if (this.search) {
					this.$emit('search');
				}
			}
		}
	}
</script>

<style lang="scss" scoped>
	::v-deep .tn-empty__text {
		margin-top: 0px !important;
	}
	
	.loading-text{
		font-size: $dawn-font-size-base;
		color: #e6e6e6;
	}

	.dawn-msg-box {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		height: 40vh;
		
		&__icon{
			font-size: 200rpx;
			color: $dawn-theme-color;
			font-weight: 0;
		}
		&__image{
			width: 50%;
			height: 50%;
			// height: 200rpx;
		}
		&__title{
			margin-top: 30rpx;
			font-size: $dawn-font-size-md;
			font-weight: bolder;
			color: $dawn-theme-color-dark;
		}
		&__text{
			font-size: $uni-font-size-base;
			color: $dawn-color-grey;
		}
	}
</style>